package com.ljx.itbbs.server.user.service.adapter;

import com.ljx.itbbs.server.user.domain.entity.PermsCategoryEntity;
import com.ljx.itbbs.server.user.domain.entity.PermsEntity;
import com.ljx.itbbs.server.user.domain.vo.req.PermsSaveReq;

/**
 * @Author: LiJunXi
 * @Description:
 * @Date: 2024-04-02  14:34
 */
public class PermsAdapter {
    public static PermsCategoryEntity buildPermsCategory(PermsSaveReq req) {
        PermsCategoryEntity permsCategoryEntity = new PermsCategoryEntity();
        permsCategoryEntity.setPermsName(req.getName());
        return permsCategoryEntity;
    }
}
